<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\common\validate;

/**
 * Description of Taocan
 *
 * @author Administrator
 */
use think\validate;

class Taocan extends validate {
    //put your code here
    protected $rule = [
        'room_bn' => 'require',
        'user_id' => 'require|number',
        'taocan' => 'require',
        'taocan_name' => 'require',
        'price' => 'require|number'
    ];
    
    protected $scene = [];
    
    protected $message = [
        'room_bn' => '房间编号不能为空',
        'user_id' => '无法获取user_id',
        'taocan' => '套餐不能为空',
        'taocan_name' => '套餐名称不能为空',
        'price' => '请输入正确的套餐价格'
    ];
}
